$topCategoryHeight: 167px;
$topHelloHeight: $topCategoryHeight*2 + $grid-basic;
$topSecoundRowHeight: 260px;

.gradient-strip {
  height: $grid-basic/2;
  background: -moz-linear-gradient(top left, #70c9e4, #70c5b7); /*firefox*/
  background: -ms-linear-gradient(top left, #70c9e4, #70c5b7); /* IE 10 */
  background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#70c9e4), to(#70c5b7));/* Safari 4-5, Chrome 1-9*/
  background: -webkit-linear-gradient(top left, #70c9e4, #70c5b7); /*Safari5.1 Chrome 10+*/
  background: #70c9e4 url("https://mydevasset.blob.core.windows.net/system-container/image/line.png") repeat;
}

/* menu list */
.top-menuList {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  padding: 0 5%;
  background-color: #FFF;

  @media(max-width: $break-tablet-max) {
    padding: 0;
    flex-wrap: wrap;
    margin-bottom: $grid-basic/2;
  }
}

.top-menuList-item {
  flex: 0 0 15%;

  @media(max-width: $break-tablet-max) {
    width: auto;
    margin: 0;
    flex: 1 0 30%;
    padding: 2px;
  }
}

.top-menuList-link {
  display: block;
  padding-top: 100px;
  height: 140px;
  width: 100%;
  font-size: 1rem;
  color: $brand-black;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;

  background-color: #FFF;
  background-position: center 20px;
  background-size: 60px;
  background-repeat: no-repeat;

  @media(max-width: $break-tablet-max) {
    height: 70px;
    padding-top: 45px;
    border: 1px solid #EFEFEF;
    border-radius: 0;

    background-position: center 10px;
    background-size: 35px;
    font-size: 0.9rem;
    font-weight: normal;

  }

  &:hover {
    text-decoration: none;
    color: #FFF;

    background-position: center 20px, 0 0;
    background-size: 60px, cover;
    background-repeat: no-repeat;

    @media(max-width: $break-tablet-max) {
      background-position: center 10px, 0 0;
      background-size: 35px, cover;
    }
  }


  .top-menuList-item:nth-child(1) & {
    background-image: url("https://mydevasset.blob.core.windows.net/system-container/image/icon_startGuide.png");
    &:hover {
      background-image: url("https://mydevasset.blob.core.windows.net/system-container/image/icon_startGuide_selected.png"),
      url("https://mydevasset.blob.core.windows.net/system-container/image/icon_hover_bg.png");
    }
  }

  .top-menuList-item:nth-child(2) & {
    background-image: url("https://mydevasset.blob.core.windows.net/system-container/image/icon_tutorial.png");
    &:hover {
      background-image: url("https://mydevasset.blob.core.windows.net/system-container/image/icon_tutorial_selected.png"),
      url("https://mydevasset.blob.core.windows.net/system-container/image/icon_hover_bg.png");
    }
  }

  .top-menuList-item:nth-child(3) & {
    background-image: url("https://mydevasset.blob.core.windows.net/system-container/image/icon_api.png");
    &:hover {
      background-image: url("https://mydevasset.blob.core.windows.net/system-container/image/icon_api_selected.png"),
      url("https://mydevasset.blob.core.windows.net/system-container/image/icon_hover_bg.png");
    }
  }

  .top-menuList-item:nth-child(4) & {
    background-image: url("https://mydevasset.blob.core.windows.net/system-container/image/icon_tool.png");
    &:hover {
      background-image: url("https://mydevasset.blob.core.windows.net/system-container/image/icon_tool_selected.png"),
      url("https://mydevasset.blob.core.windows.net/system-container/image/icon_hover_bg.png");
    }
  }

  .top-menuList-item:nth-child(5) & {
    background-image: url("https://mydevasset.blob.core.windows.net/system-container/image/icon_Tips.png");
    &:hover {
      background-image: url("https://mydevasset.blob.core.windows.net/system-container/image/icon_Tips_selected.png"),
      url("https://mydevasset.blob.core.windows.net/system-container/image/icon_hover_bg.png");
    }
  }

  .top-menuList-item:nth-child(6) & {
    background-image: url("https://mydevasset.blob.core.windows.net/system-container/image/icon_community.png");
    &:hover {
      background-image: url("https://mydevasset.blob.core.windows.net/system-container/image/icon_community_selected.png"),
      url("https://mydevasset.blob.core.windows.net/system-container/image/icon_hover_bg.png");
    }
  }
}


.top-main {
  width: 90%;
  margin: 0 auto;
  display: flex;

  @media(max-width: $break-tablet-max) {
    width: 100%;
    display: block;
    padding: 0 $grid-basic/2;
  }
}

.top-list-container {
  flex: 1 1 auto;
  margin-right: 30px;

  @media(max-width: $break-tablet-max) {
    margin-right: 0;
  }
}


.top-twitter-container {
  flex: 0 1 350px;
  @media(max-width: $break-tablet-max) {
    padding:0 $grid-basic;
    text-align: center;
  }
}

/* article list */
.articleList {
 margin: 0 auto;
}

.top-articleList,
.top-communityPost {
  display: flex;
  padding: 20px 25px;
  margin-bottom: $grid-basic*3;
  background-color: #FFF;
  border-radius: 15px;
  border: 1px solid #e5e5e4;

  @media(max-width: $break-tablet-max) {
    display: block;
    padding: $grid-basic*2;
    border-radius: $grid-basic/2;
    margin-bottom: $grid-basic*2;
  }
}

.top-articleList-left,
.top-communityPost-left {
  flex: 0 0 40%;
  text-align: center;
  @media(max-width: $break-tablet-max) {
    position: relative;
    text-align: left;
    margin-bottom: $grid-basic;
  }
}

.top-articleList-left {
  .dropdown {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    @media(max-width: $break-tablet-max) {
      margin-top: 0;
      text-align: right;
    }
  }
  .section-subscribe button {
    font-weight: bold;
    border-radius: 5px;
    padding: 15px 20px;
    width: 60%;
    min-width: 210px;
    outline:none;
    @media(max-width: $break-tablet-max) {
      width: auto;
    }
  }
  .dropdown-menu {
    left: 22%;
    width: 56%;
  }
}



.top-articleList-right,
.top-communityPost-right {
  flex: 0 0 60%;
}

.top-articleList-title,
.top-communityPost-title {
  font-size: 1.6rem;
  font-family: helvetica, arial, 'hiragino kaku gothic pro', meiryo, sans-serif;
  margin: 0 0 $grid-basic*1.5 0;
  color: #416d9f;

  @media(max-width: $break-tablet-max) {
    padding-left: 60px;
    padding-top: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: $grid-basic/2;

  }
}

.top-articleList-img,
.top-communityPost-img {
  text-align: center;
  img {
    width: 180px;
  }

  @media(max-width: $break-tablet-max) {
    position: absolute;
    top:0;
    left: 0;
    img {
      width: 45px;
    }
  }
}

.list-articles-sectionLink,
.list-posts-sectionLink {
  text-align: center;
  margin-top: $grid-basic;
  padding: 0;
  a {
    display: inline-block;
    font-size: 1rem;
    color: #3fa7df;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid #3fa7df;
    background-color: #fff;
    padding: 15px 20px;
    width: 60%;
    min-width: 190px;
  }
  a:hover {
    @include btn-gradient-strip;
  }

  @media(max-width: $break-tablet-max) {
    margin-top: 0;
    text-align: left;
    a {
      display: inline-block;
      margin-left: 60px;
      padding: $grid-basic/2;
      font-size: 1rem;
      border:none;
      width: auto;
      min-width: auto;
      font-weight: normal;
      text-align: left;
      &:hover {
        background: none;
        text-decoration: underline;
        color: $brand-blue;
      }
    }

  }
}


.list-articles {
  $updateDateTextWidth: 90px;
  li {
    @include clearfix();
    padding: 10px 0;
    border-bottom: 1px solid #e9e9e9;

    margin-bottom: $grid-basic;
    font-size: $grid-basic-size;
    line-height: $grid-basic-size*1.1;
  }

  .updated_at {
    display: block;
    float: left;
    width: $updateDateTextWidth;
  }

  a {
    display: block;
    margin-left: $updateDateTextWidth;
  }
}

.list-posts {
  margin-bottom: $grid-basic*2;
  li {
    @include clearfix();
    padding: 10px 0;
    border-bottom: 1px solid #e9e9e9;

    margin-bottom: $grid-basic;
    font-size: $grid-basic-size;
    line-height: $grid-basic-size*1.1;
  }
  .commentCount {
    display: block;
    float: left;
    color: #999;
  }
  .fa-book:before {
    color: #90CA8E;
  }
  .fa-comments:before {
    color: #9296C9;
  }
  a {
    display: block;
    margin-left: 30px;
  }
}

.twitter-timeline {
  @media(max-width: $break-tablet-max) {
    height: 700px!important;
    width: 95%!important;
  }

}

/* kintone APIを始める & Garoon APIを始める */
.button-start-API {
  display: inline-block;
  margin: 0 auto;
  width: 100%;
  ul {
    text-align: center;
    padding: 20px 10%;
    li {
      display: inline-block;
      padding: 0 20px;
      list-style: none;
      a {
        display: inline-block;
        min-width: 190px;
        padding: 15px 20px;
        color: #fff;
        font-size: 1.2rem;
        font-weight: bold;
        background-color: #2695cc;
        border-radius: 5px;
        &:hover {
          color: $brand-blue-ahover;
          background-color: #b7e0e4;
          text-decoration:none;
        }
      }
    }
  }
}